package com.dianping.cat.consumer.dependency.model.transform;

import com.dianping.cat.consumer.dependency.model.IVisitor;
import com.dianping.cat.consumer.dependency.model.entity.Dependency;
import com.dianping.cat.consumer.dependency.model.entity.DependencyReport;
import com.dianping.cat.consumer.dependency.model.entity.Index;
import com.dianping.cat.consumer.dependency.model.entity.Segment;


public abstract class BaseVisitor
  implements IVisitor
{
  public void visitDependency(Dependency dependency) {}

  public void visitDependencyReport(DependencyReport dependencyReport) {
/* 16 */     for (Segment segment : dependencyReport.getSegments().values()) {
/* 17 */       visitSegment(segment);
    }
  }



  public void visitIndex(Index index) {}


  public void visitSegment(Segment segment) {
/* 27 */     for (Index index : segment.getIndexs().values()) {
/* 28 */       visitIndex(index);
    }

/* 31 */     for (Dependency dependency : segment.getDependencies().values())
/* 32 */       visitDependency(dependency); 
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-consumer-3.0.0.jar!/com/dianping/cat/consumer/dependency/model/transform/BaseVisitor.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */